package com.finstone.data.spider.eshop.pipeline;

import java.util.Map;

import org.springframework.stereotype.Component;

import us.codecraft.webmagic.ResultItems;
import us.codecraft.webmagic.Task;

@Component
public class EShopGoodsDetailPipline extends BasePipeline {

	public void process(ResultItems paramResultItems, Task paramTask) {
		Map<String, Object> baseMap = paramResultItems.get("base");

		this.getNamedParameterJdbcTemplate().update(
				"insert into goods (id,category_id,name,image_url,price,real_id) values (:goods_id,:goods_dir_id,:goods_name,:goods_image_url,:goods_price,:real_id)", baseMap);
	}
}
